import React from "react";
import ReactDOM from "react-dom/client";
// import App from './App.tsx'
import "./index.less";
import { RouterProvider } from "react-router-dom";
import routes from "./routes";
import { ConfigProvider } from "antd";
import zhCN from "antd/locale/zh_CN";
import "dayjs/locale/zh-cn";

ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
	<React.StrictMode>
		<ConfigProvider locale={zhCN}>
			<RouterProvider router={routes} />
		</ConfigProvider>
	</React.StrictMode>
);
